package com.example.analysis.mapper;

import com.example.analysis.dto.StuScoreDto;
import com.example.analysis.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface ElectionListMapper {
    void insert(List<ElectionList> list);

    List<ElectionList> select(@Param("courseId") String courseId, @Param("classId") String classId, @Param("teacherId") String teacherId, @Param("semester") String semester);

    List<StuScoreDto> selectScores(@Param("courseId") String courseId, @Param("teacherId") String teacherId, @Param("semester") String semester);

    List<Course> selectCourses();

    List<Teacher> selectTeacher(String courseId);

    List<String> selectSemesters(@Param("courseId") String courseId, @Param("teacherId") String teacherId);
}
